<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="includes/head.jsp" /> 

<div id="box">    
<jsp:include page="includes/nav.jsp" />
        
        <div id="box-content">                           
     		<h2>List Constraint</h2>               
                   
           	<p>In this page you will <strong>Edit</strong> or <strong>Delete</strong> the constraint, and 
            see the <strong>FSA</strong> of automata.</p> 
            <p>To see the results of constraints, click on <a href="${initParam.url}validate-xml.jsp">validate XML</a>.</p>
           <div class="line"></div>   
            
			<ol>
			<s:iterator value="comboMeals">
			  <li><s:property /></li>
			</s:iterator>
			</ol>
            
            <table border="1" class="list">
              <tr>
                <th>Name Constraint</th>
                <th colspan="2">Commands</th>
              </tr>
              <% int i=0; %>
					<s:iterator value="constraints">						
						<tr>
							<td><s:property value="nameConstraint"/></td>
				      		<td><a href="edit?id=<%= i %>" >edit</a></td>
				      		<td><a href="delete?id=<%= i %>">delete</a></td>				      									
						<tr>
						<% i++; %>
					</s:iterator>
									              
            </table>                                                                  
            </div>     
                                                                                                            
        <div class="clear"></div>
    </div> 
</body>
</html>
